import Vue from "vue";
import Vuex from "vuex";
import { setItem, getItem } from "../utils/storage.js"
Vue.use(Vuex);


const PAGE_SKIN = "page-skin"
export default new Vuex.Store({
  state: {
    SkinEdition: getItem(PAGE_SKIN)
  },
  mutations: {
    changeSkin(state, payload) {
      state.SkinEdition = payload;
      setItem(PAGE_SKIN, state.SkinEdition)
    },
  },
  actions: {},
  modules: {},
});
